package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ystp.model.Tongkeyaopinjieguo;
import ystp.model.TongkeyaopinjieguoExample;

public interface TongkeyaopinjieguoMapper {

    Object getTongKeResultCount(@Param("xiangmuid") String mmxiangmuId,
                                 @Param("userid") String mmuserId,
                                 @Param("result") String mmresult);

    List<Map<String, Object>> getGuizeCount(@Param("userid") String mmuserId,
                                            @Param("xiangmuid") String mmxiangmuId,
                                            @Param("guizebianhao") String mmguizebianhao);

    List<Map<String, Object>> getJiCaiAgreedCount(@Param("userid") String mmuserId,
                                            @Param("xiangmuid") String mmxiangmuId);
    int countByExample(TongkeyaopinjieguoExample example);

    int deleteByExample(TongkeyaopinjieguoExample example);

    int deleteByPrimaryKey(String id);

    int insert(Tongkeyaopinjieguo record);

    int insertSelective(Tongkeyaopinjieguo record);

    List<Tongkeyaopinjieguo> selectByExample(TongkeyaopinjieguoExample example);

    Tongkeyaopinjieguo selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Tongkeyaopinjieguo record, @Param("example") TongkeyaopinjieguoExample example);

    int updateByExample(@Param("record") Tongkeyaopinjieguo record, @Param("example") TongkeyaopinjieguoExample example);

    int updateByPrimaryKeySelective(Tongkeyaopinjieguo record);

    int updateByPrimaryKey(Tongkeyaopinjieguo record);
}